CurrencySearch

abstract class CurrencySearch

Represents a filter for matching and displaying matched currency objects

Constructors

Link copied to clipboard
constructor()
constructor(currencyType: Int)
constructor(currencyType: CurrencyType.Type?)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Return a CurrencySearch that applies this search's criteria but also excludes hidden (from summary page) currencies

Link copied to clipboard
open fun format(curr: CurrencyType): String

Returns the String representation of the given currency. This defaults to printing the currency name.

Link copied to clipboard
open fun matches(curr: CurrencyType?): Boolean

Returns true iff the given currency matches the current search or filter. This can be overridden by subclasses that provide more detailed filtering. The default returns true if the currency type matches the type provided in the constructor or from a call to setType(). If no currency type has been provided then this returns true for all currencies.